package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_user_cash_records;

import cn.com.api.mapper.ApiT_user_cash_recordsMapper;

import cn.com.api.service.ApiT_user_cash_recordsService;

/**
 * 
 **/
@Service
public class T_user_cash_recordsServiceImplBase {
	@Autowired
	private ApiT_user_cash_recordsMapper apiT_user_cash_recordsMapper;
    
    // 根据id获取
	public ApiT_user_cash_records findT_user_cash_recordsById(Integer id){
		ApiT_user_cash_records t_user_cash_records = apiT_user_cash_recordsMapper.findT_user_cash_recordsById( id );
		return t_user_cash_records;
	}
    
    //查看数据集
	public List<ApiT_user_cash_records> findT_user_cash_recordss(){
        List<ApiT_user_cash_records> t_user_cash_recordss = apiT_user_cash_recordsMapper.findT_user_cash_recordss();
		return t_user_cash_recordss;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findT_user_cash_recordssByMap(HashMap condition){
        List<Map<String, Object>> t_user_cash_recordss = apiT_user_cash_recordsMapper.findT_user_cash_recordssByMap(condition);
		return t_user_cash_recordss;
    }
    
	// 添加
	public int insertT_user_cash_records(ApiT_user_cash_records t_user_cash_records){
		int ret_I= apiT_user_cash_recordsMapper.insertT_user_cash_records(t_user_cash_records);
		return ret_I;
	}

	// 修改
	public int updateT_user_cash_records(ApiT_user_cash_records t_user_cash_records){
		int ret_I= apiT_user_cash_recordsMapper.updateT_user_cash_records(t_user_cash_records);
		return ret_I;
	}
	
    // 删除
	public int deleteT_user_cash_records(Integer id){
		int ret_I= apiT_user_cash_recordsMapper.deleteT_user_cash_records( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


